Page History: Logout
Compare Page Revisions
Page Revision: 2012/09/04 17:16
Session TerminationUpon an established TCP (socket) connection, the T4 FIX API basic requirement is to have both the Initiator and Acceptor start with sequence number 1. The client will initiate the FIX Session by sending a Logon Message to the T4 FIX API server. Sucessful authentication will be responded with a Logon message echo. The Password field (Tag 96) of the API server logon message will be identified with an asterisk.
Drop of a physical connection will result in the end of a FIX Session. Upon reconnection, the client will attempt to start a new FIX Session with sequence number 1. Likewise, the T4 API server will respond with messages starting with sequence number 1.
Authentication RequirementsFollowing a sucessful physical connection to the T4 FIX API server, authenticated access is achieved with the following parameters of the Logon message:
| Tag Name | Tag Number | Description |
---|
1. | TargetCompId | 56 | FIX API System |
2. | SenderCompId | 49 | Firm Name |
3. | SecureData | 91 | Application ID |
4. | SecureDataLen | 90 | Length of Application ID string |
5. | SenderSubId | 50 | Firm User Name (Trader name, desk, etc.) |
6. | RawData | 96 | Firm User Password |
7. | RawDataLen | 95 | Length of Firm Password string |
Failure to provide the correct parameters in the Logon message will result in an logon failure. Appropriately, a Logout message will be sent to the client. The Logout message will contain a short description of the failure to help the firm determine the cause of failed authentication. Thereafter, a physical disconnection will occur. As the FIX Session failed, the T4 FIX API will expect a new attempt for a new FIX session. Therefore, the next Logon message (from the client) must start with sequence number 1.
Message DictionaryTag | Field Name | Req'd | Comments |
---|
| Standard Header | Y | MsgType = A |
58 | Text|| N|| Free format text string. Contains informations related to the cause of the logout. |
354|| EncodedTextLen|| N | Must be set if EncodedText field is specified and must immediately precede it. |
355 | EncodedText|| N | Encoded (non-ASCII characters) representation of the Text field in the encoded format specified via the MessageEncoding field. |
| Standard Trailer | Y |
Sample Message
Client Request
34=2|49=test|56=T4Test|52=20120904-22:13:57.789|
[FIXLOGOUT]
[MsgSeqNum] 34 = 2
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SendingTime] 52 = 20120904-22:13:57.789
Server Response
34=2|49=T4Test|56=test|50=T4FIX|52=20120904-22:13:57.789|58=Successful logout upon request|
[FIXLOGOUT]
[MsgSeqNum] 34 = 2
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120904-22:13:57.789
[Text] 58 = Successful logout upon request